export const valiteLang = {
    zh_CN: {
        attributes: {
            phone: '手机号',
            password: '密码',
            username: '姓名',
            idCard: "身份证号",
            address: "邮寄地址",
            code: '验证码',
            email: '电子邮箱',
            workAddress: '工作单位',
            position: '职称/职务',
            companyProperty: '单位性质',
            address: '通讯地址',
            job: '职业类型',
            skill: '技能/特长',
        },
        messages: {
            min: (field, [length]) => `${field}必须至少有${length}个字符`,
            _default: (field) => `${field}无效`,
            after: (field, [target]) => `${field}必须在${target}之后`,
            alpha_dash: (field) => `${field}能够包含字母数字字符、破折号和下划线`,
            alpha_num: (field) => `${field}只能包含字母数字字符`,
            alpha_spaces: (field) => `${field}只能包含字母字符和空格`,
            alpha: (field) => `${field}只能包含字母字符`,
            before: (field, [target]) => `${field}必须在${target}之前`,
            between: (field, [min, max]) => `${field}必须在${min}与${max}之间`,
            confirmed: (field, [confirmedField]) =>
                `${field}不能和${confirmedField}匹配`,
            credit_card: (field) => `${field}格式错误`,
            date_between: (field, [min, max]) => `${field}必须在${min}和${max}之间`,
            date_format: (field, [format]) => `${field}必须符合${format}格式`,
            decimal: (field, [decimals = '*'] = []) =>
                `${field}必须是数字，且能够保留${
                decimals === '*' ? '' : decimals}位小数`,
            digits: (field, [length]) =>
                `${field}必须是数字，且精确到${length}位数`,
            dimensions: (field, [width, height]) =>
                `${field}必须在${width}像素与${height}像素之间`,
            email: (field) => `${field}不是一个有效的邮箱`,
            ext: (field) => `${field}不是一个有效的文件`,
            image: (field) => `${field}不是一张有效的图片`,
            included: (field) => `${field}不是一个有效值`,
            integer: (field) => `${field}必须是整数`,
            ip: (field) => `${field}不是一个有效的地址`,
            length: (field, [length, max]) => {
                if (max) {
                    return `${field}长度必须在${length}到${max}之间`
                }
                return `${field}长度必须为${length}`
            },
            max: (field, [length]) => `${field}不能超过${length}个字符`,
            max_value: (field, [max]) => `${field}必须小于或等于${max}`,
            mimes: (field) => `${field}不是一个有效的文件类型`,
            min: (field, [length]) => `${field}必须至少有${length}个字符`,
            min_value: (field, [min]) => `${field}必须大于或等于${min}`,
            excluded: (field) => `${field}不是一个有效值`,
            numeric: (field) => `${field}只能包含数字字符`,
            regex: (field) => `${field}格式无效`,
            required: (field) => `请输入${field}`,
            url: (field) => field + '不是一个有效的url'
        },
    }
}